#ifdef DH
#pragma once
#include "dhdecoder.h"
#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"

#pragma comment (lib, "libliveMedia.lib")
#pragma comment (lib, "libBasicUsageEnvironment.lib")
#pragma comment (lib, "libUsageEnvironment.lib")
#pragma comment (lib, "libgroupsock.lib")

class DHRTSPDecoder :
	public DHDecoder
{
public:
	DHRTSPDecoder(const char* RTSPAddress, const char* fileName);
	~DHRTSPDecoder(void);

	char rtspAddress[1024];
	char saveFileName[1024];
	FILE* fWrite;

	char eventLoopWatchVariable;

	// The main streaming routine (for each "rtsp://" URL):
	void openURL(UsageEnvironment& env, char const* progName, char const* rtspURL);



	void startRecvThread();
};
#else
#endif
